﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using RESTServices.Dominio;
using System.ServiceModel.Web;

namespace RESTServices
{
    [ServiceContract]
    public interface IItinerarios
    {
        [OperationContract]
        [WebInvoke(Method = "POST", UriTemplate = "Itinerarios", ResponseFormat = WebMessageFormat.Json)]
        string CrearItinerario(Itinerario itinerarioACrear);

        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "Itinerarios/{Id_Itinerario}", ResponseFormat = WebMessageFormat.Json)]
        Itinerario ObtenerItinerario(string Id_Itinerario);

        [OperationContract]
        [WebInvoke(Method = "PUT", UriTemplate = "Itinerarios", ResponseFormat = WebMessageFormat.Json)]
        string ModificarItinerario(Itinerario itinerarioAModificar);

        [OperationContract]
        [WebInvoke(Method = "DELETE", UriTemplate = "Itinerarios/{Id_Itinerario}", ResponseFormat = WebMessageFormat.Json)]
        void EliminarItinerario(string Id_Itinerario);

        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "Itinerarios", ResponseFormat = WebMessageFormat.Json)]
        List<Itinerario> ListarItinerarios();

        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "Origenes", ResponseFormat = WebMessageFormat.Json)]
        List<Ciudad> ListarOrigenes();

        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "Destinos", ResponseFormat = WebMessageFormat.Json)]
        List<Ciudad> ListarDestinos();
    }
}
